package com.ruoyi.bookkeeping.domain;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 新闻对象 book_news
 * 
 * @author ruoyi
 * @date 2023-02-24
 */
@Data
@ApiModel("新闻对象")
public class BookNews
{
    private static final long serialVersionUID = 1L;

    @ApiModelProperty("新闻id")
    @TableId(type = IdType.AUTO)
    private Long newsId;

    @ApiModelProperty("新闻标题")
    @Excel(name = "新闻标题")
    private String newsTitle;

    @ApiModelProperty("新闻内容")
    @Excel(name = "新闻内容")
    private String newsContent;

    @ApiModelProperty("新闻类型")
    @Excel(name = "新闻类型")
    private String nesType;

    @ApiModelProperty("新闻时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "新闻时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date newsTime;

    @ApiModelProperty("新闻作者")
    @Excel(name = "新闻作者")
    private String newsAuthor;


}
